import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '项目',
    align: "center", resizable: true,
    dataIndex: 'projectId_dictText'
  },
  {
    title: '子项目',
    align: "center", resizable: true,
    dataIndex: 'subProjectId_dictText'
  },
  {
    title: '分包商',
    align: "center", resizable: true,
    dataIndex: 'contractorId_dictText'
  },
  {
    title: '申请标题',
    align: "center", resizable: true,
    dataIndex: 'applyTitle'
  },

  {
    title: '申请金额',
    align: "center", resizable: true,
    dataIndex: 'applyAmount'
  },
  {
    title: '状态',
    align: "center", resizable: true,
    dataIndex: 'status_dictText'
  },
  {
    title: '审核人',
    align: "center", resizable: true,
    dataIndex: 'reviewerUserId_dictText'
  },


  {
    title: '提交人',
    align: "center", resizable: true,
    dataIndex: 'submitterUserId_dictText'
  },

  {
    title: '财务人',
    align: "center", resizable: true,
    dataIndex: 'financialUserId_dictText'
  },


];

// 高级查询数据
export const superQuerySchema = {
  projectId: {title: '项目',order: 0,view: 'list', type: 'string',dictTable: "c_project_application", dictCode: 'id', dictText: 'project_name',},
  subProjectId: {title: '子项目',order: 1,view: 'list', type: 'string',dictTable: "c_sub_project", dictCode: 'id', dictText: 'sub_project_name',},
  contractorId: {title: '分包商ID',order: 2,view: 'list', type: 'string',dictTable: "c_contractor_info", dictCode: 'id', dictText: 'contact_name',},
  applyTitle: {title: '申请标题',order: 3,view: 'text', type: 'string',},
  applyRemark: {title: '备注',order: 4,view: 'textarea', type: 'string',},
  applyAmount: {title: '申请金额',order: 5,view: 'number', type: 'number',},
  status: {title: '状态',order: 6,view: 'list', type: 'string',dictCode: 'apply_status',},
  reviewerUserId: {title: '审核人',order: 7,view: 'list', type: 'string',dictTable: "sys_user", dictCode: 'username', dictText: 'id',},
  reviewTime: {title: '审核时间',order: 8,view: 'datetime', type: 'string',},
  reviewDescription: {title: '审核描述',order: 9,view: 'textarea', type: 'string',},
  submitterUserId: {title: '提交人',order: 10,view: 'list', type: 'string',dictTable: "sys_user", dictCode: 'username', dictText: 'id',},
  submissionTime: {title: '提交时间',order: 11,view: 'datetime', type: 'string',},
  financialUserId: {title: '财务人',order: 12,view: 'list', type: 'string',dictTable: "sys_user", dictCode: 'username', dictText: 'id',},
  financialTime: {title: '财务审核时间',order: 13,view: 'datetime', type: 'string',},
  requestId: {title: '付款记录id',order: 14,view: 'list', type: 'string',dictTable: "c_payment_request", dictCode: 'id', dictText: 'id',},
};
